package com.mbc.rmt.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import com.mbc.common.param.CriteriaParams;
import com.mbc.rmt.data.CashPaymentDataList;
import com.mbc.rmt.entities.CashPayment;
import com.mbc.rmt.entities.CashPaymentCri;
import com.mbc.rmt.entities.CashPaymentRpt;

public interface CashPaymentDAO {

	public void create(CashPayment entity) throws SQLException;
	
	public void update(CashPayment entity) throws SQLException;
	
	public void delete(CashPayment entity) throws SQLException;
	
	public CashPayment find(long key) throws SQLException;
	
	public CashPayment getCashPayment(CashPayment entity) throws SQLException;
	
	CashPaymentDataList findCashPayment(CashPaymentCri cri) throws SQLException;
	
	public CashPayment findByCode(String code, long branchId)throws SQLException;
	
	public CashPaymentDataList  findCashPaymentDataList(CriteriaParams cri)
			throws SQLException;
	
	public CashPaymentDataList  findCashPaymentforReceiptNo(CriteriaParams cri)
			throws SQLException;
	
	public CashPayment findByCodeforRpt(String code, long branchId)throws SQLException;
	
	ResultSet prepareCashPaymentReport(CashPaymentRpt info)throws SQLException;
	
}
